package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBTrainingCategory;
import ModelLayer.TrainingCategory;

public class TrainingCategoryCTR
{
	public ArrayList<TrainingCategory> findAllTrainingCategory()
    {
		DBTrainingCategory dbTrainingCategory = new DBTrainingCategory();
        ArrayList<TrainingCategory> allTrainingCategory = new ArrayList<TrainingCategory>();
        allTrainingCategory = dbTrainingCategory.getAllTrainingCategory(false);
        return allTrainingCategory;
    }
	
	public TrainingCategory findTrainingCategoryID(int TrainingCategoryID)
	{
		DBTrainingCategory dbTrainingCategory = new DBTrainingCategory();
		return dbTrainingCategory.searchTrainingCategoryID(TrainingCategoryID, true);
	}
}